HRNN n/a   IE 4   DOM 1

The HR object reflects the HR element.

 
HTML Equivalent
<HR>
 
Object Model Reference
IE [window.]document.all.elementID
alignNN n/a   IE 4   DOM 1
 Read/Write
 

Defines the horizontal alignment of the element within its surrounding container.

 
Example
document.all.myHR.align = "center"
 
Value
Any of the three horizontal alignment constants: center | left | right.
 
Default center
colorNN n/a   IE 4   DOM 1
 Read/Write
 

Sets the color scheme of the horizontal rule. If the rule is rendered in 3-D, complementary colors are automatically assigned to the shaded area.

 
Example
document.all.myHR.color = "red"
 
Value
Case-insensitive hexadecimal triplet or plain-language color name as a string. See for acceptable plain-language color names.
 
Default Browser default.
noShadeNN n/a   IE 4   DOM 1
 Read/Write
 

Whether the browser should render the rule as a flat (not 3-D) line. In Internet Explorer only, if you set the color property, the browser changes the default line style to a no-shade style.

 
Example
document.all.bar2.noShade = "true"
 
Value
Boolean value: true | false.
 
Default false
sizeNN n/a   IE 4   DOM 1
 Read/Write
 

The thickness in pixels of the horizontal rule.

 
Example
document.all.rule2.size = 3
 
Value
Positive integer.
 
Default 2
widthNN n/a   IE 4   DOM 1
 Read/Write
 

The width of the rule either in pixels (as an integer) or a percentage (as a string) of the next outermost block-level container.

 
Example
document.all.bar3.width = "70%"
 
Value
Integer (for pixels) or string (for pixels or percentage).
 
Default 100%